home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
X User Tools
/
X User Tools (O'Reilly and Associates)(1994).ISO
/
sun4c
/
archive
/
xgopher.z
/
xgopher
/
slib
/
X11
/
app-defaults
/
Xgopher-allExtend
< prev
next >
Wrap
Text File
|
1994-09-27
|
17KB
|
428 lines
!=============================================================================
! Xgopher version 1.3 resources for using ALL extended types
!
! This unique set of Xgopher resources is used to illustrate the
! use of extendedTypes by redefining EVERY Xgopher type except
! for directories and index search result (also directories) as
! an external type. All extended type definitions override the
! intrinsic processing of a type.
!
! These definitions are almost good enough to use in a production
! Xgopher. The one thing that is missing is a shell script that will
! prompt for a file name to save binary data or other file copies.
! For succinctness, I use a kludge below that just makes a temp file
! name in the home directory of the person running Xgopher.
!=============================================================================
Xgopher.title: Xgopher 1.3
! Xgopher.helpFile: /usr/lib/X11/xgopher/xgopher.help
!=============================================================================
! ----- Define all gopher types as extended types
!=============================================================================
! --- define list of extended types. Note that '9' must come
! early in the list, since many others are defined in terms
! of this file type.
Xgopher.extendedTypes: 9024568sTIg
! --- use the vi editor in an xterm to view text files
Xgopher.type0.prefix: /txt/
Xgopher.type0.description: text file
Xgopher.type0.dataType: Ascii
Xgopher.type0.execCommand: xterm -n "%n" -T "%n" -e vi %f
! --- Binary data is just copied to a file. It is hard to
! ensure a valid file name, so just use the temp file
! name, but in our home directory.
! To really do this right, we would create a shell script
! which prompted for the new file name, and invoke the
! script via execCommand. But the following will suffice
! for illustration.
Xgopher.type9.prefix: /bin/
Xgopher.type9.description: binary file
Xgopher.type9.dataType: Binary
Xgopher.type9.execCommand: cat %f > /home/tuchman/`basename %f`
! --- use the CSO ph client program to do CSO name server requests
Xgopher.type2.prefix: /cso/
Xgopher.type2.description: CSO name server
Xgopher.type2.dataType: None
Xgopher.type2.execCommand: xterm -e ph -s %h -p %p
! --- Mac binhex is like a type 9 (binary), except ascii
Xgopher.type4.sameAs: 9
Xgopher.type4.prefix: /mac/
Xgopher.type4.description: MacIntosh BinHex file
Xgopher.type4.dataType: Ascii
! --- DOS binary is like a type 9 (binary)
Xgopher.type5.sameAs: 9
Xgopher.type5.prefix: /dos/
Xgopher.type5.description: DOS binary file
! --- Unix uuencoded is like a type 9 (binary)
Xgopher.type6.sameAs: 9
Xgopher.type6.prefix: /uu /
Xgopher.type6.description: Unix uuencoded file
! --- invoke telnet
Xgopher.type8.prefix: /tel/
Xgopher.type8.description: telnet session
Xgopher.type8.dataType: None
Xgopher.type8.execCommand: xterm -n "telnet" -title "%h" -e telnet %h %P &
! --- invoke tn3270 in an Xterm
Xgopher.typeT.prefix: /tn3/
Xgopher.typeT.description: tn3270 session
Xgopher.typeT.dataType: None
Xgopher.typeT.execCommand: xterm -n "tn3270" -title "%h" -e tn3270 %h %P &
! --- use xloadimage to view an image file
Xgopher.typeI.prefix: /img/
Xgopher.typeI.description: image file
Xgopher.typeI.execCommand: xloadimage -quiet %f
! --- define type 'g' (gif file) the same as type 'I' since xloadimag
! works fine for gif files.
Xgopher.typeg.sameAs: I
Xgopher.typeg.prefix: /gif/
Xgopher.typeg.description: gif image file
! --- Sound files go to /dev/audio on a Sun Sparc. They're big, so
! use a pipe directly from the network instead of a temp file.
Xgopher.types.prefix: /snd/
Xgopher.types.description: sound file
Xgopher.types.execCommand: |cat > /dev/audio
!=============================================================================
! ----- END OF EXTENDED TYPES DEFINITIONS
!=============================================================================
!
!=============================================================================
! Application resources that a user may want to change.
! Several are commented out because the installer's choice in
! the file conf.h is most likely correct
!=============================================================================
! Xgopher.rootServer: gopher.uiuc.edu
! Xgopher.rootPort: 70
! Xgopher.mainTitle: UIUC Gopher Information Service
! Xgopher.rootPath:
! Xgopher.helpFile: /usr/lib/X11/xgopher/xgopher.help
! Xgopher.bookmarkFile: ~/.gopherrc
Xgopher.printCommand: enscript -G -b"%n" -p - %f | lpr -Pgfx
Xgopher.telnetCommand: xterm -n "telnet" -title "%h" -e telnet %h %P &
Xgopher.tn3270Command: xterm -n "tn3270" -title "%h" -e tn3270 %h %P &
! Xgopher.tn3270Command: aixterm -n "tn3270" -title "%h" -e tn3270 %h %P &
! Xgopher.tn3270Command: x3270
Xgopher.imageCommand: xloadimage -quiet
Xgopher.soundCommand: cat > /dev/audio
! Xgopher.hasSound: True
! Xgopher.logFile:
! Xgopher.tempDirectory: /tmp
!=============================================================================
! ----- The resource "defaultsInstalled" MUST be set to TRUE -----------------
! ----- The following two lines must not be changed -----------------
!=============================================================================
Xgopher.defaultsInstalled: True
Xgopher.resourcesVersion: 1.3
!=============================================================================
! ----- X resources for color ------------------------------------------------
! ----- See the color resource file, named Xgopher-color.ad in the
! ----- Xgopher distribution
!=============================================================================
!=============================================================================
! ----- X resources for general appearance and cursors -----------------------
!=============================================================================
Xgopher*borderWidth: 2
Xgopher*quit.cursorName: pirate
Xgopher*help.cursorName: question_arrow
Xgopher*directory.cursorName: hand2
Xgopher*bookmark.cursorName: hand2
Xgopher*errorDialog*borderWidth: 5
Xgopher*infoDialog*borderWidth: 3
!=============================================================================
! ----- X resources for text fonts -------------------------------------------
!=============================================================================
! ..... these fonts are good for demos and public access guest accts .....
! Xgopher*font: -*-helvetica-*-r-*-*-*-140-75-*-*-*-*-*
! Xgopher*Command.font: -*-helvetica-*-r-*-*-*-180-75-*-*-*-*-*
! Xgopher*MenuButton.font: -*-helvetica-*-r-*-*-*-180-75-*-*-*-*-*
! Xgopher*status.font: -*-helvetica-bold-r-*-*-*-180-75-*-*-*-*
! Xgopher*textDisplay*font: -*-times-medium-r-*-*-*-140-75-*-*-*-*-*
! Xgopher*csoText*font: fixed
! ..... these fonts are good for normal work and defaults .....
Xgopher*font: -*-courier-medium-r-*-*-*-120-75-*-*-*-*-*
Xgopher*textDisplay*font: -*-courier-medium-r-*-*-*-120-75-*-*-*-*-*
Xgopher*csoText*font: -*-courier-medium-r-*-*-*-120-75-*-*-*-*-*
Xgopher*nameServer*font: -*-helvetica-*-r-*-*-*-140-75-*-*-*-*-*
Xgopher*Command.font: -*-helvetica-*-r-*-*-*-140-75-*-*-*-*-*
Xgopher*MenuButton.font: -*-helvetica-*-r-*-*-*-140-75-*-*-*-*-*
Xgopher*status.font: -*-helvetica-bold-r-*-*-*-140-75-*-*-*-*
!=============================================================================
! ----- X resources for text labels ------------------------------------------
!=============================================================================
Xgopher*statusForm*quit.label: Quit
Xgopher*help.label: Help
Xgopher*statusForm*other.label: Other Commands
Xgopher*mark.label: Add selection\nas bookmark
Xgopher*markDirectoryLabel: Add directory\nas bookmark
Xgopher*unmark.label: Remove\nbookmark
Xgopher*unmarkAll.label: Remove all\nbookmarks
Xgopher*up.label: Previous\nDirectory
Xgopher*fetch.label: Fetch\nselection
Xgopher*info.label: Info about\nselection
Xgopher*infoDirectoryLabel: Info about\ndirectory
Xgopher*directoryTitle.label: Unknown Directory
Xgopher*bookmarkTitle.label: Bookmarks
Xgopher*status.label: status
Xgopher*statusShell*statusCancel.label: Cancel
Xgopher*otherActionsMenu*copy.label: Copy selected item to file
Xgopher*otherActionsMenu*unmarkAll.label: Remove all bookmarks
Xgopher*otherActionsMenu*loadMarks.label: Load bookmarks now
Xgopher*otherActionsMenu*saveMarks.label: Save bookmarks now
Xgopher*otherActionsMenu*options.label: Options panel
Xgopher*otherActionsMenu*oneItem.label: Enter gopher item
Xgopher*otherActionsMenu*version.label: Version information
Xgopher*otherActionsMenu*restart.label: Restart
Xgopher*textDone.label: Done
Xgopher*textPageDown.label: Page down
Xgopher*textPageUp.label: Page up
Xgopher*textPrint.label: Print
Xgopher*textSave.label: Save To File
Xgopher*textHold.label: Hold
Xgopher*errorDialog.ok.label: Acknowledge
Xgopher*infoDialog.ok.label: Ok, thanks!
! Xgopher*saveDialog.label: Save text to file ...
! Xgopher*saveDialog.ok.label: OK
! Xgopher*saveDialog.cancel.label: Forget it
Xgopher*csoForm*csoDone.label: Done
Xgopher*csoForm*csoHelp.label: Help
Xgopher*csoForm*csoDoQuery.label: Do query
Xgopher*csoForm*csoClearQuery.label: Clear query
Xgopher*csoForm*csoClearText.label: Clear text
Xgopher*csoForm*csoQueryLabel.label: Query name:
Xgopher*csoForm*csoFields.label: Show Fields
Xgopher*indexForm*indexDoIndex.label: Do index
Xgopher*indexForm*indexCancel.label: Cancel
Xgopher*indexForm*indexHelp.label: Help
!
! option panel labels
!
Xgopher*optionsPanel*done.label: Apply changes
Xgopher*optionsPanel*cancel.label: Cancel
Xgopher*optionsPanel*showWhatLabel.label: Show all gopher items\n\
even types not supported by Xgopher
Xgopher*optionsPanel*appendBkLabel.label: Load appends bookmarks to current list\n\
if no, load replaces current list
Xgopher*optionsPanel*loadBkLabel.label: Load bookmarks at restart
Xgopher*optionsPanel*resetLabel.label: Reset these options at restart
!
Xgopher*optionsPanel*bkSaveLabel.label: Bookmark save file:
Xgopher*optionsPanel*printCmdLabel.label: Print command:
Xgopher*optionsPanel*imageCmdLabel.label: Image display command:
Xgopher*optionsPanel*telCmdLabel.label: Telnet command:
Xgopher*optionsPanel*t3270CmdLabel.label: tn3270 command:
!
! enter single gopher item panel labels
!
Xgopher*singlePanel*done.label: Process
Xgopher*singlePanel*clear.label: Clear Fields
Xgopher*singlePanel*cancel.label: Cancel
Xgopher*singlePanel*mark.label: Set Bookmark
Xgopher*singlePanel*giTypeLabel.label: Type:
Xgopher*singlePanel*giNameLabel.label: Name:
Xgopher*singlePanel*giPathLabel.label: Path:
Xgopher*singlePanel*giHostLabel.label: Host:
Xgopher*singlePanel*giPortLabel.label: Port:
!
! version shell labels
Xgopher*versionShell*versionDone.label: Dismiss
!
! save labels
!
Xgopher*saveForm*dirLabel.label: The current working directory is:
Xgopher*saveForm*saveLabel1.label:
Xgopher*saveForm*saveLabel2.label: Enter file name:
Xgopher*saveForm*ok.label: OK
Xgopher*saveForm*cancel.label: Cancel
Xgopher*saveForm*chdir.label: Change directory
Xgopher*saveForm*help.label: Help
!
Xgopher*cdForm*cdLabel.label: New Directory Name:
Xgopher*cdForm*ok.label: OK
Xgopher*cdForm*cancel.label: Cancel
Xgopher*cdForm*help.label: Help
!
Xgopher*dupFileForm*label1.label: The file
Xgopher*dupFileForm*label2.label: already exists, please select an action:
Xgopher*dupFileForm*ok.label: Overwrite\ncontents
! Xgopher*dupFileForm*ok.label: Overwrite
Xgopher*dupFileForm*change.label: Enter another\nfile name
! Xgopher*dupFileForm*change.label: Change file name
Xgopher*dupFileForm*cancel.label: Cancel file\nsave or copy
! Xgopher*dupFileForm*cancel.label: Cancel
Xgopher*dupFileForm*append.label: Append to\nexisting file
! Xgopher*dupFileForm*append.label: Append
Xgopher*dupFileForm*help.label: Help
!=============================================================================
! ----- Translations, including those that keep CR in text entry fields
! ----- causing proper action.
!
! ----- If you remove the "ok" actions for "<Key>Return" on any of
! ----- single line text widgets below, it MUST be replaced with a
! ----- no-op() action.
!=============================================================================
Xgopher*gopherPanel*Label*translations: #override \n\
<Btn1Down>: unselectAll()
Xgopher*gopherPanel*translations: #override \n\
<Key>u: up()\n\
Ctrl<Key>d: quitApp()
Xgopher*saveShell*fileName*translations: #override \n\
<Key>Return: saveok()\n\
Ctrl<Key>u: beginning-of-line() kill-to-end-of-line()
Xgopher*cdShell*cdPathName*translations: #override \n\
<Key>Return: cdok()\n\
Ctrl<Key>u: beginning-of-line() kill-to-end-of-line()
Xgopher*csoQueryText*translations: #override \n\
<Key>Return: queryok()\n\
Ctrl<Key>u: beginning-of-line() kill-to-end-of-line()
Xgopher*indexQueryText*translations: #override \n\
<Key>Return: indexok()\n\
Ctrl<Key>u: beginning-of-line() kill-to-end-of-line()
Xgopher*Text*translations: #override \n\
<Key>Return: no-op()\n\
Ctrl<Key>u: beginning-of-line() kill-to-end-of-line()
!=============================================================================
! ----- X layout resources that should not be changed ------------------------
! ----- Changing these can cause the Xgopher displays to appear corrupted ----
!=============================================================================
!
! main Xgopher panel
!
Xgopher.minHeight: 400
Xgopher.minWidth: 400
!. Xgopher*gopherPanel.height: 600
!. Xgopher*gopherPanel.width: 600
Xgopher*gopherPanel.orientation: vertical
Xgopher*statusForm.resizeToPreferred: True
Xgopher*statusForm.SkipAdjust: True
Xgopher*statusForm.showGrip: False
Xgopher*goBox.resizeToPreferred: True
Xgopher*goBox.SkipAdjust: True
Xgopher*goBox.showGrip: False
Xgopher*goBox.spacer.borderWidth: 0
Xgopher*goBox.spacer.width: 20
Xgopher*goBox.spacer.height: 10
Xgopher*goBox.min: 50
Xgopher*goBox.max: 100
Xgopher*directoryForm.min: 60
Xgopher*directoryForm.preferredPaneSize:300
Xgopher*bookmarkForm.preferredPaneSize:125
Xgopher*directoryView.forceBars: True
Xgopher*bookmarkView.forceBars: True
Xgopher*directoryView.borderWidth: 1
Xgopher*bookmarkView.borderWidth: 1
Xgopher*directoryTitle.borderWidth: 0
Xgopher*bookmarkTitle.borderWidth: 0
Xgopher*status.borderWidth: 5
Xgopher*status.width: 500
Xgopher*directoryTitle.width: 500
Xgopher*bookmarkTitle.width: 500
Xgopher*directory.width: 500
Xgopher*bookmark.width: 500
!
! Text display popup window (top level window)
!
Xgopher*textShell.iconName: Gopher Text
Xgopher*textButtonBox.borderWidth: 0
Xgopher*textDisplay.wrap: word
Xgopher*textDisplay.width: 400
Xgopher*textShell*Text.displayCaret: False
!
! cso nameserver popup window (top level window)
!
Xgopher*csoShell.iconName: CSO Name Server
Xgopher*nameServer.borderWidth: 0
Xgopher*csoQueryLabel.borderWidth: 0
Xgopher*csoText.displayCaret: False
Xgopher*csoText.wrap: word
Xgopher*csoText.scrollVertical: always
Xgopher*csoText.scrollHorizontal: never
Xgopher*csoQueryText.editType: edit
Xgopher*nameServer.width: 400
Xgopher*nameServer.resizable: True
!
! keyword search (index) popup
!
Xgopher*indexForm.indexLabel.borderWidth: 0
Xgopher*indexForm.indexLabel.resizable: True
!
! ***** options panel resources
!
Xgopher*optionsPanel*itemsForm.vertDistance: 10
Xgopher*optionsPanel*buttonBox.borderWidth: 0
Xgopher*optionsPanel*itemsForm*Box.borderWidth: 0
Xgopher*optionsPanel*itemsForm*Form.borderWidth: 0
Xgopher*optionsPanel*itemsForm*Label.borderWidth: 0
Xgopher*optionsPanel*itemsForm*Toggle.borderWidth: 1
Xgopher*optionsPanel*itemsForm*Text.borderWidth: 1
Xgopher*optionsPanel*bkSaveForm.vertDistance: 15
Xgopher*optionsPanel*itemsForm*Toggle.internalWidth: 2
!
Xgopher*optionsPanel*bkSaveLabel.justify: right
Xgopher*optionsPanel*printCmdLabel.justify: right
Xgopher*optionsPanel*imageCmdLabel.justify: right
Xgopher*optionsPanel*telCmdLabel.justify: right
Xgopher*optionsPanel*t3270CmdLabel.justify: right
!
! ***** single gopher item panel resources
!
Xgopher*singlePanel*itemsForm.vertDistance: 10
Xgopher*singlePanel*buttonBox.borderWidth: 0
Xgopher*singlePanel*itemsForm.borderWidth: 2
Xgopher*singlePanel*itemsForm*borderWidth: 0
Xgopher*singlePanel*itemsForm*Text.borderWidth: 1
Xgopher*singlePanel*Label.justify: right
!
! ***** status popup panel resources
!
Xgopher*statusShell*statusLabel1.borderWidth: 0
Xgopher*statusShell*statusLabel2.borderWidth: 0
!
! ***** file save/copy panels
!
Xgopher*saveShell*saveForm*dirPath.borderwidth: 2
Xgopher*saveForm*Label.borderWidth: 0
Xgopher*saveForm*saveLabel1.vertDistance: 20
Xgopher*saveForm*saveLabel2.vertDistance: 0
Xgopher*saveForm*dirPath.displayCaret: False
!
Xgopher*cdForm*Label.borderWidth: 0
!
Xgopher*dupFileForm*Label.borderWidth: 0